HTMLify
style.css
Views: 14 | Author: huxn-webdev
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | * { box-sizing: border-box; } nav { display: flex; justify-content: space-around; align-items: center; margin: 20px; } .input-container { display: flex; align-items: center; border: 1px solid #ff6e00; padding: 5px; width: 300px; height: 50px; border-radius: 50px; margin: 10px; position: relative; transition: width 1.5s; } .input { margin: 10px 50px; margin-left: 20px; width: 100%; color: #ff6e00; border: none; background: transparent; outline: none; transition-delay: 0.5s; } .magnifier { position: absolute; right: 15px; width: 25px; text-align: center; margin: 0 auto; cursor: pointer; color: #ffa31a; } ul li { display: inline; margin-left: 40px; font-family: sans-serif; } main { display: flex; justify-content: center; align-items: center; } .container { width: 60%; padding: 3rem; box-shadow: 10px 10px 40px 5px #e0e0e0; margin-top: 5rem; display: flex; justify-content: space-between; align-items: center; } .content-container h1 { font-family: sans-serif; font-size: 2rem; color: #2c2c2c; } .content-container p { font-family: sans-serif; line-height: 1.4; margin-bottom: 2rem; color: #444444; width: 26rem; } .img { transform: translateX(-120px); margin-top: 1rem; width: 350px; height: 350px; border-radius: 300px; background: url("https://images.unsplash.com/photo-1600289031464-74d374b64991?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1075&q=80"); background-repeat: no-repeat; background-position: center; background-size: conver; } .ingredients { width: 80%; margin: 0 auto; margin-top: 5rem; padding: 50px; } .ingredients span { display: flex; flex-wrap: wrap; list-style: none; } .ing { padding: 10px 20px; border: 2px solid #ff6e00; color: #ff6e00; font-family: sans-serif; border-radius: 100px; } .main-btn { background: transparent; border: none; border: 2px solid #ffa31a; padding: 10px; color: #ffa31a; } |